<div id="edit_common_info"  style="display: none;">
	<table id="common_info" cellspacing="0" cellpadding="0" style='width: 95%'>						
		<tr>			
			<td class="label" style="width: 90px">{translate}Promotion program_1{/translate}</td>
			<td class="field">
				<select id="sale_program" style="width: 350px" onchange="updateSale();">	
					<option value="" label="- - -">- - -</option>
					{html_options options=$saleProgram selected=$ticket->get('sale_program_store_id')}
				</select>
			</td>
			<td class="label" style="width: 110px">{translate}Examination type{/translate}</td>			
			<td class="field">
				<select id="examination_type" name="examination_type" style="width: 350px">
					<option value="0" label="- - -">- - -</option>
					{html_options options=$examinationType selected=$ticket->get('examination_type_id')}
				</select>
			</td>
		</tr>
		<tr>
			<td class="label">{translate}Description{/translate}</td>
			<td class='field'><input type="text" id="ticket_note" style="width: 345px;" value="{$ticket->get('notes')}"/></td>
			<td class="label" colspan='2'>{translate}Medicial insurance{/translate}&nbsp;&nbsp;
				<input id="insurance" type="checkbox" onclick="updateInsurance();" 
				{if empty($insuranceType)}
					disabled="disabled"
				{elseif $ticket->get("insurance") != "no"}
					checked="checked"							
				{/if}
				>
			</td>
		</tr>
		<tr>
			<td colspan="4">
				<div id="buttons" style='text-align: right'>
					<input type="button" id="save_common_info_btn" onclick="javascript:udpateCommonInfo();" value="{translate}Save{/translate}">&nbsp;
					<input type="button" onclick="javascript:cancelUpdate();" value="{translate}Cancel{/translate}">
				</div>
				<div id="barLoading" style="display: none;">
					<img src="{$base_uri}/images/ajax-loader.gif"/>
				</div>
			</td>
		</tr>
	</table>	
</div>
<div id="view_common_info">
	<table id="common_info" cellspacing="0" cellpadding="0" style='width: 95%'>				
		<tr>			
			<td class="label" style="width: 90px">{translate}Promotion program_1{/translate}</td>
			<td class="field">
				{if $sale->getLocalizedText('name') != ""}
					{$sale->get('code')} - {$sale->getLocalizedText('name')}
				{else} 
					N/A
				{/if}						
			</td>
			<td class="label" style="width: 110px">{translate}Examination type{/translate}</td>			
			<td class="field">				
				{if $examinationTypeName!=""}
					{$examinationTypeName}		
				{else}
					N/A
				{/if}
			</td>
		</tr>
		<tr>
			<td class="label">{translate}Description{/translate}</td>
			<td class="field">
				<span id="ticket_note_view">{$ticket->get('notes')}</span>										
			</td>
			<td class="label" colspan='2'>{translate}Medicial insurance{/translate}&nbsp;&nbsp;
				{if $ticket->get('sale_program_store_id') != 0}
					<input type="checkbox" disabled="disabled"/>
				{elseif $ticket->get('insurance') != 'no'}
					<input type="checkbox" checked="checked" disabled="disabled"/>
				{else}
					<input type="checkbox" disabled="disabled"/>	
				{/if}
			</td>
		</tr>
		{if !isset($closedTicket)}				
		<tr>
			<td colspan="4" style='text-align: right'><input type="button" onclick="javascript:performEditCommonInfo();" value="{translate}Edit{/translate}"></td>
		</tr>
		{/if}
	</table>	
</div>